<div id="isi_na_<?=$modul_anak?>">
<div id="<?=$modul_anak.'_'.$modul_main?>_toolbar">
<? if ($modul_anak=='pemesanan_cabang'){?>
	
			<div style="margin-top:2px; width:100%; padding:5px; font-family:Arial, Helvetica, sans-serif;">
				<span id="key_nya">
				<label style="width:100px;">Tgl. Pemesanan </label> : <input type="text" name="tgl_awal_<?=$modul_anak?>" id="tgl_awal_<?=$modul_anak?>" style="width:150px; border: 1px solid silver; padding: 1px;" />
					&nbsp;s/d&nbsp;<input type="text" name="tgl_akhir_<?=$modul_anak?>" id="tgl_akhir_<?=$modul_anak?>" style="width:150px; border: 1px solid silver; padding: 1px;" />
				</span>
				&nbsp;&nbsp;&nbsp;<br>
				<label style="width:100px;">Status</label> :
					<select id="status" name="status" style="width:327px; border: 1px solid silver; padding: 1px;">
									<option value="">-- Pilih --</option>
									<option value="F">Disetujui</option>
									<option value="C">Disetujui Dengan Catatan</option>
									<option value="D">Cancel/Dihapus</option>
									<option value="P">Progress</option>
								  </select>		
				&nbsp;&nbsp;
				<label style="width:100px;">Kategori</label> : 
					<select id="cat_<?=$modul_anak?>" name="cat_<?=$modul_anak?>" style="width:155px; border: 1px solid silver; padding: 1px;">
						<option value="">-- Pilih --</option>
						<option value="A.no_pemesanan">No. Pemesanan</option>
						<option value="B.nama_dealer">Nama Dealer</option>
					</select>			
				&nbsp;
				<input type="text" name="key_<?=$modul_anak?>" id="key_<?=$modul_anak?>" style="width:165px; border: 1px solid silver; padding: 1px;" />
				<a id="find_<?=$modul_anak?>" class="l-btn l-btn-plain" href="#" onclick="cari_data('<?=$modul_anak?>')" >
					<span class="l-btn-left">
						<span class="l-btn-text icon-search" style="padding-left: 20px;"></span>
					</span>
				</a>
				
				
				
			</div>
	

<? } if ($modul_anak=='pemesanan'){?>
	
			<div style="margin-top:2px; width:100%; padding:5px; font-family:Arial, Helvetica, sans-serif;">
				<span id="key_nya">
				<label style="width:100px;">Tgl. Pemesanan </label> : <input type="text" name="tgl_awal_<?=$modul_anak?>" id="tgl_awal_<?=$modul_anak?>" style="width:150px; border: 1px solid silver; padding: 1px;" />
					&nbsp;s/d&nbsp;<input type="text" name="tgl_akhir_<?=$modul_anak?>" id="tgl_akhir_<?=$modul_anak?>" style="width:150px; border: 1px solid silver; padding: 1px;" />
				</span>
				&nbsp;&nbsp;&nbsp;<br>
				<label style="width:100px;">Status</label> :
					<select id="status_<?=$modul_anak?>" name="status_<?=$modul_anak?>" style="width:327px; border: 1px solid silver; padding: 1px;">
									<option value="">-- Pilih --</option>
									<option value="F">Faktur Selesai</option>
									<option value="D">Cancel/Dihapus</option>
									<option value="P">Progress</option>
								  </select>		
				&nbsp;&nbsp;
				<label style="width:100px;">Kategori</label> : 
					<select id="cat_<?=$modul_anak?>" name="cat_<?=$modul_anak?>" style="width:155px; border: 1px solid silver; padding: 1px;">
						<option value="">-- Pilih --</option>
						<option value="Z.no_pemesanan">No. Permintaan</option>
						<option value="A.no_pemesanan">No. Pemesanan</option>
						<option value="B.nama_supplier">Nama Supplier</option>
						
					</select>			
				&nbsp;
				<input type="text" name="key_<?=$modul_anak?>" id="key_<?=$modul_anak?>" style="width:165px; border: 1px solid silver; padding: 1px;" />
				<a id="find_<?=$modul_anak?>" class="l-btn l-btn-plain" href="#" onclick="cari_data('<?=$modul_anak?>')" >
					<span class="l-btn-left">
						<span class="l-btn-text icon-search" style="padding-left: 20px;"></span>
					</span>
				</a>
				
				
			</div>
	
<? }
if ($modul_anak=='pembelian'){
?>
			<div style="margin-top:2px; width:98%; padding:5px; font-family:Arial, Helvetica, sans-serif;">
				<span id="key_nya">
				<label>Tgl. Transaksi </label> : <input type="text" name="tgl_faktur_awal" id="tgl_faktur_awal" style="width:150px; border: 1px solid silver; padding: 1px;" />
					&nbsp;s/d&nbsp;<input type="text" name="tgl_faktur_akhir" id="tgl_faktur_akhir" style="width:150px; border: 1px solid silver; padding: 1px;" />
				</span>
				<br />
				<label>Faktur Pembelian </label> : 
				<select id="cat_brg" name="cat_brg" style="width:155px; border: 1px solid silver; padding: 1px;">
									<option value="">-- Pilih --</option>
									<option value="A.commodity_code">No Faktur</option>
									<option value="C.importer_name">No Surat Pemesanan Barang</option>								
									<option value="status_vo">Status Dokumen</option>		
									
				</select>
				&nbsp;
				<input type="text" name="key" id="key" style="width:165px; border: 1px solid silver; padding: 1px;" />
				<a id="find_<?=$modul_anak?>" class="l-btn l-btn-plain" href="#" onclick="cari_data('<?=$modul_anak?>')" >
					<span class="l-btn-left">
						<span class="l-btn-text icon-search" style="padding-left: 20px;"></span>
					</span>
				</a>
				</span>
			</div>
				
 <? }?>
 <?
 if ($modul_anak=='penerimaan'){
?>
			<div style="margin-top:2px; width:98%; padding:5px; font-family:Arial, Helvetica, sans-serif;">
				<span id="key_nya">
				<label>Tgl. Transaksi </label> : <input type="text" name="tgl_penerimaan_awal" id="tgl_penerimaan_awal" style="width:150px; border: 1px solid silver; padding: 1px;" />
					&nbsp;s/d&nbsp;<input type="text" name="tgl_penerimaan_akhir" id="tgl_penerimaan_akhir" style="width:150px; border: 1px solid silver; padding: 1px;" />
				</span>
				<br />
				<label>Penerimaan Barang </label> : 
				<select id="cat_brg" name="cat_brg" style="width:155px; border: 1px solid silver; padding: 1px;">
									<option value="">-- Pilih --</option>
									<option value="A.commodity_code">No Penerimaan Barang</option>
									<option value="C.importer_name">No Pemesanan Barang</option>								
									<option value="status_vo">No Surat Jalan</option>	
									<option value="status_vo">Group Dealer</option>	
									<option value="status_vo">Status Dokumen</option>	
									
									
									
				</select>
				&nbsp;
				<input type="text" name="key" id="key" style="width:165px; border: 1px solid silver; padding: 1px;" />
				<a id="find_<?=$modul_anak?>" class="l-btn l-btn-plain" href="#" onclick="cari_data('<?=$modul_anak?>')" >
					<span class="l-btn-left">
						<span class="l-btn-text icon-search" style="padding-left: 20px;"></span>
					</span>
				</a>
				</span>
			</div>
				
 <? }?>
 <?
  if ($modul_anak=='retur'){
?>
			<div style="margin-top:2px; width:95%; padding:5px; font-family:Arial, Helvetica, sans-serif;">
				<span id="key_nya">
				<label>Tgl. Transaksi </label> : <input type="text" name="tgl_retur_awal" id="tgl_retur_awal" style="width:150px; border: 1px solid silver; padding: 1px;" />
					&nbsp;s/d&nbsp;<input type="text" name="tgl_retur_akhir" id="tgl_retur_akhir" style="width:150px; border: 1px solid silver; padding: 1px;" />
				</span>
				
				
				<br />
				<label>Retur Pembelian</label> : <select id="cat" name="cat" style="width:155px; border: 1px solid silver; padding: 1px;">
									<option value="">-- Pilih --</option>
									
									<option value="A.commodity_code">No Retur</option>
									<option value="C.importer_name">No. Faktur Pembelian</option>								
									<option value="status_vo">Nama Group Dealer</option>								
									<option value="status_vo">Nama Dealer</option>		
									
								  </select>
				&nbsp;
				<input type="text" name="key" id="key" style="width:158px; border: 1px solid silver; padding: 1px;" />
				&nbsp;&nbsp;&nbsp;
				<label>Data Barang</label> : <select id="cat_brg" name="cat_brg" style="width:155px; border: 1px solid silver; padding: 1px;">
									<option value="">-- Pilih --</option>
									
									<option value="A.commodity_code">Nama Group Barang</option>
									<option value="C.importer_name">Nama Kategori Barang</option>								
									<option value="status_vo">Kode Barang</option>								
									
									<option value="B.commodity_code">Nama Barang</option>
									<option value="D.importer_name">Merek</option>								
									
								  </select>
				
								
				&nbsp;
				<input type="text" name="key" id="key" style="width:165px; border: 1px solid silver; padding: 1px;" />
				<a id="find_{$type}" class="l-btn l-btn-plain" href="#" onclick="cari_data('{$type}')" >
					<span class="l-btn-left">
						<span class="l-btn-text icon-search" style="padding-left: 20px;"></span>
					</span>
				</a>
				
				
				
			</div>
 <? }?>


</div>

<table id="<?=$modul_anak.'_'.$modul_main?>_grid"></table>	
	

<!-- Toolbar Bray -->
<div style="display:inline-block; border:1px solid #57B2DA; border-radius: 3px 3px 3px 3px; margin-top:7px; padding:5px;width:99%">					

	<a href="#" onClick="" class="l-btn l-btn-plain" style="float:right;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text import">Import</span>
		</span>
	</a>

	<a href="#" onClick="" class="l-btn l-btn-plain" style="float:right;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text ekspor_excell">Export to Excell</span>
		</span>
	</a>
	
	<a href="#" onClick="" class="l-btn l-btn-plain" style="float:right;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-print">Print</span>
		</span>
	</a>
	
	<a href="#" onClick="cek_grid('delete')" class="l-btn l-btn-plain" style="float:right;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-cancel">Delete</span>
		</span>
	</a>
		
	<a href="#" onClick="cek_grid('edit')" class="l-btn l-btn-plain" style="float:right;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-edit">Edit</span>
		</span>
	</a>		
		
	<a href="#" onClick="cek_grid('add')" class="l-btn l-btn-plain" style="float:right;">
		<span class="l-btn-left">
			<span style="padding-left: 20px;" class="l-btn-text icon-add">Add</span>
		</span>
	</a>
</div>
</div>
<div id="form_naa_<?=$modul_anak?>" style="display:none;width:100%;"></div>

<script type="text/javascript">
var modul_anak="<?=$modul_anak?>";
var modul_main="<?=$modul_main?>";
var judul_na="<?=$judul?>";
var flag_div="<?=$flag_div?>";
</script>
<script type="text/javascript" src="<?=base_url()?>assets/js/procurement/grid.js"></script>